home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 1 Issue 2 / PDCD-1 - Issue 02.iso / _utilities / utilities / 003 / _gs / !GS / h / GSTYPE1 < prev    next >
Text File  |  1991-10-27  |  2KB  |  50 lines

  1. /* Copyright (C) 1990, 1991 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.  */
  19.  
  20. /* gstype1.h */
  21. /* Client interface to Adobe Type 1 font routines for Ghostscript library */
  22.  
  23. /* Encrypt/decrypt procedures */
  24. typedef ushort crypt_state;
  25. #define crypt_charstring_seed 4330
  26. int gs_type1_encrypt(P4(byte *dest, byte *src, uint len, crypt_state *pstate));
  27. int gs_type1_decrypt(P4(byte *dest, byte *src, uint len, crypt_state *pstate));
  28.  
  29. /* CharString interpreter */
  30. typedef struct gs_type1_state_s gs_type1_state;
  31. extern const uint gs_type1_state_sizeof;
  32. #ifdef ARC
  33. #ifndef GS_SHOW_ENUM_S_DEFINED
  34. struct gs_show_enum_s;
  35. #endif
  36. #ifndef GS_TYPE1_DATA_S_DEFINED
  37. struct gs_type1_data_s;
  38. #endif
  39. #endif
  40. int gs_type1_init(P6(gs_type1_state *pis, struct gs_show_enum_s *penum,
  41.           int charpath_flag, int paint_type,
  42.           byte *charstring, struct gs_type1_data_s *pdata));
  43. /* Continue interpreting a Type 1 CharString. */
  44. /* If str != 0, it is taken as the byte string to interpret. */
  45. /* Return 0 on successful completion, <0 on error, */
  46. /* (code<<1)+1 for seac, or (N+1)<<1 for callothersubr(N). */
  47. int gs_type1_interpret(P2(gs_type1_state *, byte *));
  48. /* Pop a (fixed) number off the internal stack */
  49. int gs_type1_pop(P2(gs_type1_state *, fixed *));
  50.